<template>
	<div class="layout-main">
		<div class="share-item">
			<el-form :model="tableData" status-icon :rules="rules1" ref="tableData" label-width="100px" class="demo-ruleForm">			
				<div class="item-con big-text">
					<div class="item-title">域名检测API设置</div>
					<el-form-item label="域名检测频率" prop="title">
						<el-input v-model="tableData.title"></el-input>
					</el-form-item>
					<el-form-item label="入口域名检测API接口" prop="desc">
						<el-input v-model="tableData.desc"></el-input>
					</el-form-item>
					<el-form-item label="入口域名检测接口cookie" prop="link">
						<el-input v-model="tableData.link"></el-input>
					</el-form-item>
					<el-form-item label="落地域名检测API接口" prop="img">
						<el-input v-model="tableData.img"></el-input>
					</el-form-item>
					<el-form-item label="落地域名检测接口Cookie" prop="img">
						<el-input v-model="tableData.img"></el-input>
					</el-form-item>	
				</div>		
				<el-form-item>
					<el-button type="primary" @click="submitForm('tableData')">保存</el-button>
				</el-form-item>
			</el-form>
		</div>
	</div>
</template>
<script>	
	import { TreeToArray } from '@/utils'
	import '@/assets/less/modules/switch.less'
	export default {
		data() {
			return {
				rules1: {

				},
				tableData: {					
				}		
			}
		},
		computed: {
            tabIndex() {
                return this.$store.getters.tabIndex ? this.$store.getters.tabIndex : 0
            }
        }, 
		mounted() {		
			this.$store.commit('breadData', {
				pageName:'配置与接口',
				tabs:[
					{
						label: '接口配置',
						name: 'group',
						tab: '0',
					}
				]
			});
		},		
		methods: {			
			// 取消提案
			next() {
				
			},
			submitForm () {
				// api.
			}
		}
	}
</script>
